package edu.zut.cs.ai.teach.admin.web.spring.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.zut.cs.ai.teach.admin.domain.User;
import edu.zut.cs.ai.teach.admin.service.UserManager;
import edu.zut.cs.ai.teach.base.web.GenericController;

@RequestMapping(value = "/user", produces = { MediaType.APPLICATION_JSON_VALUE })
@RestController
public class UserController extends GenericController<Long, User, UserManager> {

	public static final Logger logger = LogManager.getLogger(UserController.class.getName());

	UserManager userManager;

	@Autowired
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
		this.manager = this.userManager;
	}

}
